package com.neuedu.studentmanage.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Student {
	private Integer stuId;
	private String password;
	private String stuName;
	private char sex;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date birthdate;

	public Student(Integer stuId) {
		super();
		this.stuId = stuId;
	}

	private String place;
	private String address;
	private char status;

	private Custodian custodian;
	private Class classs;
	private Dorm dorm;
	private Spends spends;

	public Integer getStuId() {
		return stuId;
	}

	public Student(Integer stuId, String password, String stuName, char sex, Date birthdate, String place,
			String address, char status, Custodian custodian, Class classs, Dorm dorm, Spends spends) {
		super();
		this.stuId = stuId;
		this.password = password;
		this.stuName = stuName;
		this.sex = sex;
		this.birthdate = birthdate;
		this.place = place;
		this.address = address;
		this.status = status;
		this.custodian = custodian;
		this.classs = classs;
		this.dorm = dorm;
		this.spends = spends;
	}

	public char getStatus() {
		return status;
	}

	public void setStatus(char status) {
		this.status = status;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Custodian getCustodian() {
		return custodian;
	}

	public void setCustodian(Custodian custodian) {
		this.custodian = custodian;
	}

	public Class getClasss() {
		return classs;
	}

	public void setClasss(Class classs) {
		this.classs = classs;
	}

	public Dorm getDorm() {
		return dorm;
	}

	public void setDorm(Dorm dorm) {
		this.dorm = dorm;
	}

	public Spends getSpends() {
		return spends;
	}

	public void setSpends(Spends spends) {
		this.spends = spends;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Student(Integer stuId, String password) {
		super();
		this.stuId = stuId;
		this.password = password;
	}

	public Student(Integer stuId, String password, String stuName, char sex, Date birthdate, String place,
			String address, Custodian custodian, Class classs, Dorm dorm, Spends spends) {
		super();
		this.stuId = stuId;
		this.password = password;
		this.stuName = stuName;
		this.sex = sex;
		this.birthdate = birthdate;
		this.place = place;
		this.address = address;
		this.custodian = custodian;
		this.classs = classs;
		this.dorm = dorm;
		this.spends = spends;
	}

	@Override
	public String toString() {
		return "Student [stuId=" + stuId + ", password=" + password + ", stuName=" + stuName + ", sex=" + sex
				+ ", birthdate=" + birthdate + ", place=" + place + ", address=" + address + ", status=" + status
				+ ", custodian=" + custodian + ", classs=" + classs + ", dorm=" + dorm + ", spends=" + spends + "]";
	}

}
